Skip to content

Conversation

xrmx
Copy link
Contributor

@xrmx xrmx commented Sep 30, 2025

Description

This fixes a crash in the detection of libpq version in the psycopg module when we wrap a module that is not the one containing the pq module that has the version. In that case we just don't report the libpq version instead of crashing.

References:

Fixes #3793

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • tox

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@xrmx xrmx requested a review from a team as a code owner September 30, 2025 16:08
xrmx added 9 commits October 1, 2025 10:57
This fixes a crash in the detection of libpq version in the psycopg module
when we wrap a module that is not the one containing the pq module that
has the version.
@xrmx xrmx force-pushed the fix-dbapi-commenter-psycopg branch from 55d528d to b1ccc93 Compare October 1, 2025 09:09
@xrmx xrmx force-pushed the fix-dbapi-commenter-psycopg branch from 2c71648 to 186a1d3 Compare October 1, 2025 09:42
@xrmx xrmx requested a review from emdneto October 1, 2025 11:45
@xrmx xrmx enabled auto-merge (squash) October 1, 2025 13:03
@xrmx xrmx merged commit ae4972c into open-telemetry:main Oct 1, 2025
638 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Psycopg instrumentation errors when retrieving libpq build version
3 participants